const spread = [12, 5, 8, 130, 44];
const gt10 = spread.filter((item) => {
    item > 10;
})
console.log(gt10);


console.log(spread.map((item) => {
    return item > 10 ? item : '';
}))

const user = [{
        'user': 'brnry',
        age: 20,
        active: false
    },
    {
        'user': 'brnry',
        age: 24,
        active: false
    },
    {
        'user': 'bfsfsy',
        age: 40,
        active: false
    },
    {
        'user': 'abc',
        age: 80,
        active: false
    }
]
const filter = user.filter((user) => user.age == 24 || user.age == 40)
console.log(filter);